home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 March / Disc 2 / APC0403D2.ISO / workshop / gamserv / files / GHSetup.1.5.0004.exe / %MAINDIR% / UT.gof < prev   
Encoding:
Text File  |  2004-01-15  |  10.3 KB  |  436 lines

  1. // Class definition for quake2.exe
  2.  
  3. // In UT's case, every property should either be marked readonly, 
  4. // command-line only, or have an IniSection qualifier.
  5.  
  6. class UnrealTournament
  7. {
  8.     /***************************************************************
  9.     * Begin of required properties for all GOFs.
  10.     * The 'Display' names should never be changed on these variables.
  11.     ***************************************************************/
  12.     [
  13.      Display("Host Name"), 
  14.      Description("The name of the server."),
  15.      IniSection("Engine.GameReplicationInfo"),
  16.      Default("Unreal Tournament Server")
  17.     ]
  18.     string ServerName;
  19.  
  20.     [
  21.      Display("Current Players"), 
  22.      Description("The current number of players connected to the server."), 
  23.      Readonly,
  24.      AlwaysBrowserVisible
  25.     ]
  26.     uint32 numplayers;
  27.  
  28.     [
  29.      Display("Maximum Players"), 
  30.      Description("The maximum number of players allowed on the server."), 
  31.      Default("8"),
  32.      IniSection("%gametype%"),
  33.      AlwaysBrowserVisible
  34.     ]
  35.     uint32 maxplayers;
  36.  
  37.     [
  38.      Display("Port"), 
  39.      Description("The base port the server is using."), 
  40.      Readonly,
  41.      Default("7777") // This will be used when inserting a new server.
  42.     ]
  43.     uint32 port;
  44.  
  45.     [
  46.      Display("Extra Parameters"), 
  47.      Description(
  48.         "This property can be used to pass additional command-line "
  49.         "parameters to the game server."), 
  50.      CommandLineOnly,
  51.      Default("")
  52.     ]
  53.     string extraparam; // This name should never change.
  54.  
  55.     [
  56.      Display("Initial Level"),
  57.      Description("When the server first starts it will use this level."),
  58.      Values{
  59.         "AS-Frigate", "AS-Guardia", "AS-HiSpeed",
  60.         "AS-Mazon", "AS-OceanFloor", "AS-Overlord",
  61.         "AS-Rook", "AS-Tutorial", "CTF-Command",
  62.         "CTF-Coret", "CTF-Dreary", "CTF-EternalCave",
  63.         "CTF-Face", "CTF-Gauntlet", "CTF-LavaGiant",
  64.         "CTF-Niven", "CTF-November", "CTF-Tutorial",
  65.         "DM-Barricade", "DM-Codex", "DM-Conveyor",
  66.         "DM-Curse][", "DM-Deck16][", "DM-Fetid",
  67.         "DM-Fractal", "DM-Gothic", "DM-Grinder",
  68.         "DM-HyperBlast", "DM-KGalleon", "DM-Liandri",
  69.         "DM-Morbias][", "DM-Morpheus", "DM-Oblivion",
  70.         "DM-Peak", "DM-Phobos", "DM-Pressure",
  71.         "DM-Pyramid", "DM-Stalwart", "DM-StalwartXL",
  72.         "DM-Tempest", "DM-Turbine", "DM-Tutorial",
  73.         "DM-Zeto", "DOM-Cinder", "DOM-Condemned",
  74.         "DOM-Cryptic", "DOM-Gearbolt", "DOM-Ghardhen",
  75.         "DOM-Lament", "DOM-Leadworks", "DOM-MetalDream",
  76.         "DOM-Olden", "DOM-Sesmar", "DOM-Tutorial",
  77.         "EOL_Assault", "EOL_Challenge", "EOL_CTF",
  78.         "EOL_Deathmatch", "EOL_Domination", "EOL_Statues"
  79.         },
  80.      CommandLineOnly,
  81.      Default("DM-Turbine")
  82.     ]
  83.     string initlevel;
  84.  
  85.     [
  86.      Display("Game Type"),
  87.      Description("Determines the type of game the server will host."),
  88.      Values {
  89.         "Tournament Deathmatch",
  90.         "Tournament Team Game",
  91.         "Assault",
  92.         "Domination",
  93.         "Capture the Flag",
  94.         "Last Man Standing"
  95.         },
  96.      ValueMap {
  97.         "Botpack.DeathMatchPlus",
  98.         "Botpack.TeamGamePlus",
  99.         "Botpack.Assault",
  100.         "Botpack.Domination",
  101.         "Botpack.CTFGame",
  102.         "Botpack.LastManStanding"
  103.         },
  104.      CommandLineOnly,
  105.      Default("Tournament Deathmatch")
  106.     ]
  107.     string gametype;
  108.  
  109.     [
  110.      Display("Current Level"),
  111.      Description("The current map the server is using."),
  112.      AlwaysBrowserVisible,
  113.      Readonly,
  114.      UsesValues("initlevel")
  115.     ]
  116.     string mapname;
  117.  
  118.     [
  119.      Display("Time Limit"), 
  120.      Description(
  121.         "The number of minutes the server will remain on a level.  "
  122.         "If this is 0 there is no time limit."),
  123.      IniSection("%gametype%"),
  124.      Default("0") 
  125.     ]
  126.     uint32 timelimit;
  127.  
  128.     [
  129.      Display("Score Limit"), 
  130.      Description(
  131.         "When a player's score reaches this level, the server will change "
  132.         "to the next map.  If this number is 0 there is no score limit."),
  133.      IniSection("%gametype%"),
  134.      Default("20") 
  135.     ]
  136.     uint32 fraglimit;
  137.     /***************************************************************
  138.     * End of required properties for all GOFs.
  139.     ***************************************************************/
  140.  
  141.  
  142.     [
  143.      Display("Game Name"), 
  144.      Description("The name of the game being played."),
  145.      Readonly
  146.     ]
  147.     string gamename;
  148.  
  149.     [
  150.      Display("Admin Name"),
  151.      Description("The name of the admin for the server."), 
  152.      IniSection("Engine.GameReplicationInfo"),
  153.      AlwaysBrowserVisible
  154.     ]
  155.     string AdminName;
  156.  
  157.     [
  158.      Display("Admin Email"),
  159.      Description("The email address of the admin for the server."), 
  160.      IniSection("Engine.GameReplicationInfo"),
  161.      AlwaysBrowserVisible
  162.     ]
  163.     string AdminEmail;
  164.  
  165.     [
  166.      Display("Admin Password"),
  167.      Description(
  168.         "The password required to admin the server."),
  169.      IniSection("Engine.GameInfo"),
  170.      Default("")
  171.     ]
  172.     string AdminPassword;
  173.  
  174.     [
  175.      Display("Game Password"),
  176.      Description(
  177.         "The password required to join the game."),
  178.      IniSection("Engine.GameInfo"),
  179.      Default("")
  180.     ]
  181.     string GamePassword;
  182.  
  183.     [
  184.      Display("Region"),
  185.      Description(
  186.         "The region of the world where the server is located."),
  187.      IniSection("Engine.GameReplicationInfo"),
  188.      Values {
  189.         "No Region Specified (any Region)",
  190.         "Southeast US",
  191.         "Western US",
  192.         "Midwest US",
  193.         "Northwest US, West Canada",
  194.         "Northeast US, East Canada",
  195.         "United Kingdom",
  196.         "Continental Europe",
  197.         "Central Asia, Middle East",
  198.         "Southeast Asia, Pacific",
  199.         "Africa",
  200.         "Australia / NZ / Pacific",
  201.         "Central, South America"
  202.      },
  203.      Default("No Region Specified (any Region)")
  204.     ]
  205.     uint32 Region;
  206.  
  207.     [
  208.      Display("MOTD Line 1"),
  209.      Description(
  210.         "Line 1 of the Message of the Day."),
  211.      IniSection("Engine.GameReplicationInfo"),
  212.      Default("")
  213.     ]
  214.     string MOTDLine1;
  215.  
  216.     [
  217.      Display("MOTD Line 2"),
  218.      Description(
  219.         "Line 2 of the Message of the Day."),
  220.      IniSection("Engine.GameReplicationInfo"),
  221.      Default("")
  222.     ]
  223.     string MOTDLine2;
  224.  
  225.     [
  226.      Display("MOTD Line 3"),
  227.      Description(
  228.         "Line 3 of the Message of the Day."),
  229.      IniSection("Engine.GameReplicationInfo"),
  230.      Default("")
  231.     ]
  232.     string MOTDLine3;
  233.  
  234.     [
  235.      Display("MOTD Line 4"),
  236.      Description(
  237.         "Line 4 of the Message of the Day."),
  238.      IniSection("Engine.GameReplicationInfo"),
  239.      Default("")
  240.     ]
  241.     string MOTDLine4;
  242.  
  243.     [
  244.      Display("Web Server Enabled"),
  245.      Description(
  246.         "Enables the UT remote admin web server."),
  247.      Values { "True", "False" },
  248.      IniSection("UWeb.WebServer"),
  249.      Default("False")
  250.     ]
  251.     string bEnabled;
  252.  
  253.     [
  254.      Display("Web Server Port"),
  255.      Description(
  256.         "Determines the port the UT web server uses."),
  257.      IniSection("UWeb.WebServer"),
  258.      Default("80")
  259.     ]
  260.     string ListenPort;
  261.  
  262.  
  263.     [
  264.      Display("Maximum Teams"),
  265.      IniSection("%gametype%"),
  266.      Default("2")
  267.     ]
  268.     uint32 MaxTeams;
  269.  
  270.     [
  271.      Display("Maximum Team Size"),
  272.      Description(
  273.         "The maximum number of players allowed on a team."),
  274.      IniSection("%gametype%"),
  275.      Default("16")
  276.     ]
  277.     uint32 MaxTeamSize;
  278.  
  279.     [
  280.      Display("Weapons Stay"),
  281.      Values { "True", "False" },
  282.      IniSection("%gametype%"),
  283.      Default("True")
  284.     ]
  285.     uint32 bMultiWeaponStay;
  286.  
  287.     [
  288.      Display("Game Speed"),
  289.      IniSection("Engine.GameInfo"),
  290.      Default("1.0")
  291.     ]
  292.     string GameSpeed;
  293.  
  294.     [
  295.      Display("Air Control"),
  296.      IniSection("%gametype%"),
  297.      Default("0.35")
  298.     ]
  299.     string AirControl;
  300.  
  301.     [
  302.      Display("Friendly Fire"),
  303.      IniSection("%gametype%"),
  304.      Default("0")
  305.     ]
  306.     string FriendlyFireScale;
  307.  
  308.     [
  309.      Display("Use Translocator"),
  310.      Values { "True", "False" },
  311.      IniSection("%gametype%"),
  312.      Default("True")
  313.     ]
  314.     string bUseTranslocator;
  315.  
  316.     [
  317.      Display("Use Translocator"),
  318.      Values { "True", "False" },
  319.      IniSection("%gametype%"),
  320.      Default("False")
  321.     ]
  322.     string bUseTranslocator;
  323.  
  324.     [
  325.      Display("Goal Team Score"),
  326.      IniSection("%gametype%"),
  327.      Description("The first team to reach this score wins."),
  328.      Default("100")
  329.     ]
  330.     string GoalTeamScore;
  331.  
  332.     [
  333.      Display("Force Respawn"),
  334.      Values { "True", "False" },
  335.      IniSection("%gametype%"),
  336.      Default("False")
  337.     ]
  338.     string bForceRespawn;
  339.  
  340.     [
  341.      Display("Tournament"),
  342.      Values { "True", "False" },
  343.      IniSection("%gametype%"),
  344.      Default("True")
  345.     ]
  346.     string bTournament;
  347.  
  348.     [
  349.      Display("Force Balanced Teams"),
  350.      Values { "True", "False" },
  351.      IniSection("%gametype%"),
  352.      Default("True")
  353.     ]
  354.     string bBalanceTeams;
  355.  
  356.     [
  357.      Display("Maximum Spectators"),
  358.      Description(
  359.         "The maximum number of spectators allowed in the game."),
  360.      IniSection("Engine.GameInfo"),
  361.      Default("2")
  362.     ]
  363.     uint32 MaxSpectators;
  364.  
  365.     [
  366.      Display("Minimum Players"),
  367.      Description(
  368.         "The minimum number of players allowed in the game."),
  369.      IniSection("Botpack.DeathMatchPlus"),
  370.      Default("0")
  371.     ]
  372.     uint32 minplayers;
  373.  
  374.     [
  375.      Display("Change Levels"), 
  376.      Readonly
  377.     ]
  378.     string changelevels;
  379.  
  380.     [
  381.      Display("World Log"), 
  382.      Readonly
  383.     ]
  384.     string worldlog;
  385.  
  386.     [
  387.      Display("Game Mode"), 
  388.      Readonly
  389.     ]
  390.     string gamemode;
  391.  
  392.     [
  393.      Display("Game Style"), 
  394.      Readonly
  395.     ]
  396.     string gamestyle;
  397.  
  398.     [
  399.      Display("Game Version"), 
  400.      Readonly
  401.     ]
  402.     string gamever;
  403.  
  404.     [
  405.      Display("Location"), 
  406.      Readonly
  407.     ]
  408.     string location;
  409.  
  410.     [
  411.      Display("Map Title"), 
  412.      Readonly
  413.     ]
  414.     string maptitle;
  415.  
  416.     [
  417.      Display("Minnet Version"), 
  418.      Readonly
  419.     ]
  420.     string minnetver;
  421.  
  422.     [
  423.      Display("Minnet Version"), 
  424.      Readonly
  425.     ]
  426.     string minnetver;
  427.  
  428.     [
  429.      Display("Listen Server"), 
  430.      Readonly
  431.     ]
  432.     string listenserver;
  433.  
  434. };
  435.     
  436.